import request from '@/utils/request'
/**
 * 入廊管理---管线入廊申请-管线入廊申请列表查询
 */
export const pipeLineApplyList = (params, page, size) => {
  return request({
    url: `/opermgt/pipelineApply/search/${page}/${size}`,
    method: 'POST',
    data: params
  })
}
/**
 * 入廊管理---管线入廊申请-管廊下拉数据查询
 */
export const pipeInfoList = () => {
  return request({
    url: '/opermgt/universalMethod/getPipeInfoList',
  })
}
/**
 * 入廊管理---管线入廊申请-仓库下拉数据查询
 */
export const pipeStorehouserList = () => {
  return request({
    url: '/opermgt/universalMethod/getStorehouserList',
  })
}
/**
 * 入廊管理---管线入廊申请-防火分区下拉数据查询
 */
export const pipeSubregionInfoList = () => {
  return request({
    url: '/opermgt/universalMethod/getSubregionInfoList',
  })
}
/**
 * 入廊管理---管线入廊申请-查询管线类型
 */
export const pipeLineApplyType = () => {
  return request({
    url: '/opermgt/pipelineApply/selectType',
  })
}
/**
 * 入廊管理---管线入廊申请-删除
 */
export const delpipeLineApply = (id) => {
  return request({
    url: `/opermgt/pipelineApply/${id}`,
    method: 'DELETE'
  })
}

/**
 * 入廊管理---管线入廊申请-管线入廊申请保存
 * @param {*} data
 * @returns
 */
export const savePipeApply = (data) => {
  return request({
    url: '/opermgt/pipelineApply',
    method: 'POST',
    data: data

  })
}
/**
 * 入廊管理---管线入廊申请-管线入廊申请审核
 * @param {*} data
 * @returns
 */
export const savePipeaduit = (data) => {
  return request({
    url: '/opermgt/pipelineApply/aduit',
    method: 'POST',
    data: data

  })
}
